<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <!-- 导入页面的基本样式 -->
    <link rel="stylesheet" href="/6-跨域-JSONP/淘宝搜索案例/css/search.css" />
    <!-- 渲染样式 -->
    <link rel="stylesheet" href="/结业练习/css/tb.css">
    <!-- 导入 jQuery -->
    <script src="/js/jquery-1.11.0.min.js"></script>
    <script src="/js/template-web.js"></script>
</head>

<body>

    <div class="container">
        <!-- Logo -->
        <img src="/6-跨域-JSONP/淘宝搜索案例/images/taobao_logo.png" alt="" class="logo" />

        <div class="box">
            <!-- tab 栏 -->
            <div class="tabs">
                <div class="tab-active">宝贝</div>
                <div>店铺</div>
            </div>
            <!-- 搜索区域（搜索框和搜索按钮） -->
            <div class="search-box">
                <input type="text" class="ipt" placeholder="请输入要搜索的内容" /><button class="btnSearch">
                    搜索
                </button>
            </div>
            <!-- 搜索推荐区域 -->
            <div id="xuanran">

            </div>
        </div>
    </div>

    <!-- 定义模版 -->
    <script type="text/html" id="tpl">
    {{each result}}
    <div id="xritem">{{$value[0]}}</div>
    {{/each}}
</script>


    <script src="/结业练习/js/tb.js"></script>
</body>

</html>